﻿@model anpr.Models.Officer

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Officer</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.firstName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.firstName)
            @Html.ValidationMessageFor(model => model.firstName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.midName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.midName)
            @Html.ValidationMessageFor(model => model.midName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.lastName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.lastName)
            @Html.ValidationMessageFor(model => model.lastName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.DOB)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DOB)
            @Html.ValidationMessageFor(model => model.DOB)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.street)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.street)
            @Html.ValidationMessageFor(model => model.street)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.suburb)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.suburb)
            @Html.ValidationMessageFor(model => model.suburb)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.state)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.state)
            @Html.ValidationMessageFor(model => model.state)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.postcode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.postcode)
            @Html.ValidationMessageFor(model => model.postcode)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.phoneNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.phoneNumber)
            @Html.ValidationMessageFor(model => model.phoneNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.mobileNumber)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.mobileNumber)
            @Html.ValidationMessageFor(model => model.mobileNumber)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.posting)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.posting)
            @Html.ValidationMessageFor(model => model.posting)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
